#include"server.hpp"
#include<iostream>


int main()
{
    server s;
    std::string message;
    while (true)
    {
        if (s.RecPipe(&message) > 0)
        {
            std::cout << "client say# " << message << std::endl;
        }
        else break;
        
        // sleep(1);
    }
    std::cout << "client exit, me quit ,too!" << std::endl;

    s.closePipe();

    return 0;
}